package com.chengqs.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chengqs.common.utils.PageUtils;
import com.chengqs.gulimall.product.entity.AttrEntity;
import com.chengqs.gulimall.product.vo.AttrGroupRelationVO;
import com.chengqs.gulimall.product.vo.AttrResponseVO;
import com.chengqs.gulimall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author chengqs
 * @email chengqs422@163.com
 * @date 2025-05-10 13:32:41
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long cateLogId, String type);

    AttrResponseVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    /**
     * 在指定的所有属性集合里面挑出检索属性
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

